package com.shouhe.mysap.controller.pur;


import com.shouhe.mysap.entity.PurSupplier;
import com.shouhe.mysap.service.PurSupplierService;
import com.shouhe.mysap.util.SelectUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 守鹤
 * @since 2020-06-11
 */
@RestController
@RequestMapping("/pur-supplier")
public class PurSupplierController {


    @Autowired
    private PurSupplierService purSupplierService;

    @RequestMapping("/getPurSupplierBySupplierCode")
    public PurSupplier getPurSupplierName(String supplierCode) {
        return SelectUtil.selectOneEq("supplier_code", supplierCode, purSupplierService);
    }

}

